import Http from "../http";

export async function getMenusApi() {
    return await Http.get<any[]>('system/menus')
}
export async function addMenuApi(data:any) {
    return await Http.post('system/menu/add', data)
}

export async function editMenuApi(id:number, data:any) {
    return await Http.put('system/menu/edit/' + id, data)
}

export async function deleteMenuApi(id:number) {
    return await Http.delete('system/menu/delete', {id})
}